const add = x => y =>x+y;
console.log(add(1)(2));